package cc.iotkit.generator.dto.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "规则主键业务对象")
public class RuleByPksBo {

    @ApiModelProperty(value = "规则的ID", example = "12345")
    private String id;

    @ApiModelProperty(value = "规则的名称", example = "温度规则")
    private String name;

    @ApiModelProperty(value = "规则的状态", example = "active")
    private String state;

    @ApiModelProperty(value = "规则的类型", example = "threshold")
    private String type;

    @ApiModelProperty(value = "监听器列表", example = "[{\"type\":\"device\",\"config\":\"{\"type\":\"device\",\"pk\":\"S6EadYYcACdJ32rd\",\"conditions\":[{\"parameters\":[],\"identifier\":\"state:*\",\"type\":\"state\"}]}\"}]")
    private String listeners;

    @ApiModelProperty(value = "过滤器列表")
    private String filters;

    @ApiModelProperty(value = "动作列表")
    private String actions;

    @ApiModelProperty(value = "创建时间戳", example = "1617181920")
    private Long createAt;

    @ApiModelProperty(value = "描述", example = "123")
    private String desc;
}